﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ccit.ClassLibrary;

namespace Ccit.SysPlat.Purview
{
    /// <summary>
    /// Description: 系统平台菜单权限 -> 角色消息对象 
    /// Author: tim 2010-03-02
    /// </summary>
    public class MsRole
    {
        #region static attributes
        /// <summary>
        /// 程序集名称
        /// </summary>
        public static string assemblyName = "Ccit.SysPurview.dll";
        /// <summary>
        /// 类名
        /// </summary>
        public static string className = "Ccit.SysPlat.Purview.Role";
        #endregion

        #region public attributes
        /// <summary>
        /// 角色Id
        /// </summary>
        public string roleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string roleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        public string roleDesc { get; set; }

        /// <summary>
        /// 角色范围
        /// </summary>
        public string rangeIds { get; set; }

        /// <summary>
        /// 范围类型
        /// </summary>
        public eSysRangeType rangeType { get; set; }

        /// <summary>
        /// 角色类型(是否系统角色)
        /// </summary>
        public eTrueFalse sysRole { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        public string effect { get; set; }
        #endregion

        #region public extend attributes
        /// <summary>
        /// 是否允许编辑
        /// </summary>
        public eTrueFalse canEdit { get; set; }

        /// <summary>
        /// 角色范围名称
        /// </summary>
        public string rangeNames { get; set; }

        /// <summary>
        /// 角色对应的模块权限菜单Id串
        /// </summary>
        public string modPrvIds { get; set; }

        /// <summary>
        /// 角色对应的菜单权限集合
        /// </summary>
        public List<MsPurview> lstMenuPrv { get; set; }
        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsRole() { }
        #endregion
    }
}
